package com.ph.irp.base.assistantmaterial.service.impl;
import java.util.List;
import com.ph.irp.base.assistantmaterial.dao.PBaseAssistantmaterialDeliverymethodDao;
import com.ph.irp.base.assistantmaterial.service.PBaseAssistantmaterialDeliverymethodService;
import com.ph.irp.model.PBaseAssistantmaterialDeliverymethod;

public class PBaseAssistantmaterialDeliverymethodServiceImpl implements
		PBaseAssistantmaterialDeliverymethodService {
	private PBaseAssistantmaterialDeliverymethodDao deliveryMethodDaoProxy;
	

	public PBaseAssistantmaterialDeliverymethodDao getDeliveryMethodDaoProxy() {
		return deliveryMethodDaoProxy;
	}

	public void setDeliveryMethodDaoProxy(
			PBaseAssistantmaterialDeliverymethodDao deliveryMethodDaoProxy) {
		this.deliveryMethodDaoProxy = deliveryMethodDaoProxy;
	}

	@Override
	public void addDeliverymethod(
			PBaseAssistantmaterialDeliverymethod deliveryMethod)
			throws Throwable {
		deliveryMethodDaoProxy.addDeliverymethod(deliveryMethod);
	}

	@Override
	public void deleteDeliverymethod(int deliveryMethodId) throws Throwable {
		deliveryMethodDaoProxy.deleteDeliverymethod(deliveryMethodId);
	}

	@Override
	public PBaseAssistantmaterialDeliverymethod getDeliverymethodId(
			int deliveryMethodId) throws Throwable {
		return deliveryMethodDaoProxy.getDeliverymethodId(deliveryMethodId);
	}

	@Override
	public List<PBaseAssistantmaterialDeliverymethod> getDeliverymethodList() throws Throwable {
		return deliveryMethodDaoProxy.getDeliverymethodList();
	}

	@Override
	public void updateDeliverymethod(
			PBaseAssistantmaterialDeliverymethod deliveryMethod)
			throws Throwable {
		deliveryMethodDaoProxy.updateDeliverymethod(deliveryMethod);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List getDeliverymethodByCode(
			String code) throws Throwable {
		  return deliveryMethodDaoProxy.getDeliverymethodByCode(code);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List getDeliverymethodByCodeAndName(
			String code, String name) throws Throwable {
		// TODO Auto-generated method stub
		return deliveryMethodDaoProxy.getDeliverymethodByCodeAndName(code, name);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List getDeliverymethodByName(
			String name) throws Throwable {
		return deliveryMethodDaoProxy.getDeliverymethodByName(name);
	}

}
